home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / a7221v1b.zip / ADI7221 / RETCODES.H < prev    next >
C/C++ Source or Header  |  1992-03-12  |  2KB  |  46 lines

  1. /*
  2.    Module:  main.c
  3.    Date:    3/9/92
  4.    Version: 1.0b
  5.    Author:  Dave Lutz
  6.    Email:   lutz@psych.rochester.edu
  7.    Copyright: 1992 University of Rochester, Psychology Dept.
  8.  
  9.    Disclaimer:  This software is distributed free of charge.  As such, it
  10.                 comes with ABSOLUTELY NO WARRANTY.  The user of the software
  11.                 assumes ALL RISKS associated with its use.
  12.  
  13.                 Your rights to modify and/or distribute this software are
  14.                 outlined in the file ADI7221.DOC.
  15.  
  16.    Purpose: This module provides the constant definitions for the return
  17.             codes used by the functions in the ADI conversion utitility.
  18. */
  19.  
  20. #ifndef TRUE
  21. #define TRUE 1
  22. #endif
  23. #ifndef FALSE
  24. #define FALSE 0
  25. #endif
  26. #ifndef NULL
  27. #define NULL 0
  28. #endif
  29.  
  30.    /* to avoid conflicts, the following codes should be out of the range of
  31.       valid ADI command codes (1-9).  This is especially critical for BADCMD
  32.       and BADFMT, since they are returned in place of an ADI code in some
  33.       instances.
  34.    */
  35.  
  36. #define ALLOK   0    /* program ran to completion with no errors */
  37. #define BADARGS 10   /* illegal command line */
  38. #define NOBUFF  11   /* couldn't allocate file buffer */
  39. #define BADOPEN 12   /* couldn't open file */
  40. #define BADIO   13   /* file read or write failed */
  41. #define NOTADI  14   /* input file is not an ADI plot file */
  42. #define BADCMD  14   /* illegal ADI command */
  43. #define BADFMT  15   /* illegal argument format for ADI command */
  44. #define ABORTED 16   /* ADI abort command was encountered in input file */
  45. #define NOEND   17   /* no END_PLOT encountered in input file */
  46.